/*
 * @Author: feok-generator
 * @Date: Wed Oct 17 2018 09:42:59 GMT+0800 (CST)
 */
import { app, resFilter, error, errorMute } from "@/model/defalutConfig";
import {
  API_OSS_STS,
  API_AUTH_LOGIN, API_ASSETS_FILE,
  API_ASSETS_GROUP,
  API_ASSETS_GROUP_ID,
  API_ASSETS_FILE_ID,
  API_ASSETS_FILE_SUMMARY,
  API_USER_INFO,
  API_USER_PASSWORD,
  API_ASSETS_FILE_PLAYCOUN,
  API_ASSETS_USE_STATISTICS,
  API_ASSETS_FILE_VIDEOLIST,
} from "@/api";

export const geApitOssStss = app.get(API_OSS_STS, error, resFilter);

export const postApiAuthLogin = app.post(API_AUTH_LOGIN, error, resFilter);

export const getApiAssetsGroup = app.get(API_ASSETS_GROUP, error, resFilter);
export const postApiAssetsGroup = app.post(API_ASSETS_GROUP, error, resFilter);

export const getApiAssetsFile = app.get(API_ASSETS_FILE, error, resFilter);
export const putApiAssetsFile = app.put(API_ASSETS_FILE, error, resFilter);
export const postApiAssetsFile = app.post(API_ASSETS_FILE, error, resFilter);

export const putApiAssetsFileId = app.put(API_ASSETS_FILE_ID, error, resFilter);
export const deleteApiAssetsFileId = app.delete(API_ASSETS_FILE_ID, error, resFilter);

export const putApiAssetsGroupId = app.put(API_ASSETS_GROUP_ID, error, resFilter);
export const deleteApiAssetsGroupId = app.delete(API_ASSETS_GROUP_ID, error, resFilter);

export const getApiAssetsFileSummary = app.get(API_ASSETS_FILE_SUMMARY, error, resFilter);
export const getApiAssetsFilePlaycoun = app.get(API_ASSETS_FILE_PLAYCOUN, error, resFilter);

export const postApiAssetsUseStatistics = app.post(API_ASSETS_USE_STATISTICS, error, resFilter);

export const getApiUserInfo = app.get(API_USER_INFO, error, resFilter);

export const putApiUserPassword = app.put(API_USER_PASSWORD, error, resFilter);

export const getApiAssetsFileVideolist = app.get(API_ASSETS_FILE_VIDEOLIST, error, resFilter);
